<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <style>
        .mt {
            margin-top: 50px;
        }
        
        .sreachBtn,
        .addBtn,
        .delBtn {
            margin-left: 20px;
        }
        
        tr {
            text-align: center;
        }
        
        h4#title {
            font-size: 16px;
            font-weight: bold;
        }
        
        label.col-sm-2.control-label {
            width: 300px;
        }
    </style>
</head>

<body>

    <!-- 导航 start-->
    <nav class="navbar navbar-expand-lg navbar-light bg-light  navbar-dark bg-dark">
        <a class="navbar-brand" href="#">班级管理</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">学生学籍管理<span class="sr-only">(current)</span></a>
                </li>
            </ul>
            <form class="form-inline my-2 my-lg-0">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">欢迎登陆</button>
            </form>
        </div>
    </nav>
    <!-- 导航 end -->
    <!--主题 start  -->
    <div class="container">
        <!-- 按钮组 start -->
        <div class="input-group col-md-5 mt">
            <input type="text" class="form-control btn-sm keyword" placeholder="请输入关键字" aria-label="Username" aria-describedby="basic-addon1">
            <button type="button" class="btn btn-info btn-sm sreachBtn">查询</button>
            <button type="button" class="btn btn-warning btn-sm addBtn" data-toggle="modal" data-target="#myModal">新增学生信息</button>
            <input type="button" class="btn btn-danger btn-sm delAllBtn " value="删除" disabled data-toggle="modal" data-target="#delModel">
        </div>
        <!-- 按钮组 end -->
        <!-- 表格 start -->
        <table class="table table-striped table-bordered table-hover table-responsive-sm mt">
            <thead class="thead-dark">
                <tr>
                    <th scope="col"><input type="checkbox" class="allCheck"></th>
                    <th scope="col">姓名</th>
                    <th scope="col">年龄</th>
                    <th scope="col">户籍</th>
                    <th scope="col">电话</th>
                    <th scope="col">邮箱</th>
                    <th scope="col">入学日期</th>
                    <th scope="col">操作</th>
                </tr>
            </thead>
            <tbody class="test">

            </tbody>
        </table>
        <!-- 表格 end -->
        <!-- 分页 start -->
        <nav aria-label="Page navigation example">
            <ul class="pagination justify-content-end" id="pageWrap">

            </ul>
        </nav>
        <!-- 分页 end -->
    </div>
    <!--主题 end  -->
    <!-- 模态框 start -->
    <!-- 模态框 -->
    <div class="modal fade" id="myModal">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- 模态框头部 -->
                <div class="modal-header">
                    <h4 class="modal-title">新增学生信息</h4>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- 模态框主体 -->
                <div class="modal-body">
                    <form>
                        <div class="form-group row input-group-sm">
                            <label for="inputEmail3" class="col-sm-3 col-form-label">姓名</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="username" placeholder="姓名" autocomplete="off">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="inputPassword3" class="col-sm-3 col-form-label">年龄</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="age" placeholder="年龄">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="inputPassword3" class="col-sm-3 col-form-label">户籍</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="register" placeholder="户籍">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="inputPassword3" class="col-sm-3 col-form-label">电话</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="telephone" placeholder="电话">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="inputPassword3" class="col-sm-3 col-form-label">邮箱</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="email" placeholder="邮箱">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="inputPassword3" class="col-sm-3 col-form-label">入学日期</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" id="enData" placeholder="入学日期">
                            </div>
                        </div>
                    </form>
                </div>

                <!-- 模态框底部 -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-success btn-sm" data-dismiss="modal" id="saveBtn">保存</button>
                    <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
                </div>

            </div>
        </div>
    </div>
    <!-- 模态框 end -->


    <!-- 删除信息模态框 start -->
    <!-- <div class="modal fade" id="delModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLabel">提示信息</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                </div>
                <div class="modal-body">
                    确定删除选中的学生吗？
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary btn-sm ensure" data-dismiss="modal">确定</button>
                </div>
            </div>
        </div>
    </div> -->
    <!-- 删除信息模态框 end -->
    <!-- 
    <script id="tableTemp" type="text/html">
        {{each data}}
        <tr>
            <th scope="col" class="check"><input type="checkbox" class="itemCheck" id="{{$value.id}}"></th>
            <th scope="col" class="username">{{$value.username}}
            </th>
            <th scope="col" class="age">{{$value.age}}</th>
            <th scope="col" class="register">{{$value.register}}</th>
            <th scope="col" class="telephone">{{$value.telephone}}</th>
            <th scope="col" class="email">{{$value.email}}</th>
            <th scope="col" class="enData">{{$value.enData}}</th>
            <th scope="col" class="btns">
                <input type="button" class="btn btn-outline-success btn-sm updateBtn" disabled value="修改" data-btn="updateBtn" data-toggle="modal" data-target="#myModal">
                <input type="button" class="btn btn-outline-danger btn-sm" data-toggle="modal" data-target="#delModel" disabled value="删除">
            </th>
        </tr>
        {{/each}}
    </script> -->

    <script src="js/lib/jquery-3.1.0.min.js"></script>
    <script src="js/lib/bootstrap.min.js"></script>
    <script src="js/lib/template.js"></script>
    <script src="js/index.js"></script>

</body>

</html>